import random 

def main1():
    with open('单词文本.txt') as f:
        result=[]
        aquestion=[]
        f=f.read()
        a=f.split('\n')
        answer=0
        aw=0
        wrong_answer=[]
        for i in a:
            b=str(i)
            c=str(b).split('/')
            result.append(c)
        data = random.choice(result)
        #问题
        ques = data[1]
        #正确答案
        answer = data[0]
        print('中文：' + ques)
        #输入的答案
        inputanswer = input('请输入英文：')
        #判断是否正确
        if inputanswer == answer:
            print('-----------------正确-----------------')
            print('继续战斗')
            print('\n')
            #如果正确函数返回 True
            return 'True'
        if inputanswer != answer:
            print('-----------------错误-----------------')
            print('这都不会！！！该好好背单词了')
            # 如果错误函数返回 False
            return 'False'
        # print(result)
        # remember(answer,result,aquestion,aw,wrong_answer)
        # print('复习完毕!!')


        
